import request from '@/utils/request'

// 查询车辆管理信息列表
export function listInfo(query) {
  return request({
    url: '/cockpit/info/list',
    method: 'get',
    params: query
  })
}

// 查询车辆管理信息详细
export function getInfo(id) {
  return request({
    url: '/cockpit/info/' + id,
    method: 'get'
  })
}

// 新增车辆管理信息
export function addInfo(data) {
  return request({
    url: '/cockpit/info',
    method: 'post',
    data: data
  })
}

// 修改车辆管理信息
export function updateInfo(data) {
  return request({
    url: '/cockpit/info',
    method: 'put',
    data: data
  })
}

// 删除车辆管理信息
export function delInfo(id) {
  return request({
    url: '/cockpit/info/' + id,
    method: 'delete'
  })
}

export function unLockUserId(id) {
  return request({
    url: '/cockpit/info/unlock/' + id,
    method: 'get'
  })
}

export function lockUserId(data) {
  return request({
    url: '/cockpit/info/lock',
    method: 'post',
    data: data
  })
}

// 查询用户列表
export function listUser() {
  return request({
    url: '/system/user/listNotPage',
    method: 'get',
    params: ''
  })
}

